package conson.tech.manage.coupons.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * InterfaceName: UserCouponListDto
 * Description: 按活动id获取关联的优惠券列表入参实体
 * Author: XYF
 * Date: 2020/7/25 11:15
 * Version: 1.0
 */
@Data
public class CouponsListByActivityIdDto {

    /**
     * 每页条数
     */
    @ApiModelProperty(value = "每页条数")
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize;
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    @NotNull(message = "页码不能为空")
    private Integer pageIndex;
    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

}
